<%= content_tag :div,
  class: node_editor.css_classes,
  data: node_editor.data_attributes do %>
  <%= element_form.fields_for(:ingredients, node_editor.ingredient) do |f| %>
    <%= ingredient_label(node_editor, :node_id) %>
    <%= render Alchemy::Admin::NodeSelect.new(node_editor.node, url: alchemy.api_nodes_path(language_id: node_editor.page&.language_id, include: :ancestors), query_params: node_editor.settings.fetch(:query_params, {})) do %>
      <%= f.text_field :node_id,
        value: node_editor.node&.id,
        id: node_editor.form_field_id(:node_id),
        class: 'alchemy_selectbox full_width' %>
    <% end %>
  <% end %>
<% end %>
